package com.totoro.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.totoro.dao.BaseHibernateDao;
import com.totoro.dao.RoleResourceDao;
import com.totoro.domain.RoleResource;

@Transactional
@Service
public class RoleResourceService extends BaseService<RoleResource, Integer>{
	
	private RoleResourceDao roleResourceDao;
	
	@Autowired
	@Override
	public void setBaseDao(BaseHibernateDao<RoleResource, Integer> roleResourceDao) {
		// TODO Auto-generated method stub
		this.baseDao = roleResourceDao;
		this.roleResourceDao = (RoleResourceDao) roleResourceDao;
	}

	public List<RoleResource> list(String propertyName,Object value){
		return roleResourceDao.list(propertyName, value);
	}
}
